package com.account.book.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.List;

/**
 * @author liang-hw
 * @className ResultPage
 * @description
 * @date 2023/11/06 15:55:50
 */
@Data
@AllArgsConstructor
@ApiModel("分页信息参数")
public class ResultPage<T> {

    @ApiModelProperty(value = "总条数")
    private Long totalCount;

    @ApiModelProperty(value = "总页数")
    private Integer totalPage;

    @ApiModelProperty(value = "当前页")
    private Integer pageNumber;

    @ApiModelProperty(value = "当前页展示数量")
    private Integer pageSize;

    @ApiModelProperty(value = "分页数据")
    private List<T> list;
}